
//TODO a(6)
function a6(module, exports, a) {
    function i(e) {
        return null != e && (9 == e.nodeType || e.nodeType == e.DOCUMENT_NODE)
    }

    function s(e) {
        return e instanceof Array
    }

    function r(e) {
        return l.call(e, function (e) {
            return null != e
        })
    }

    function n(e) {
        return e.replace(/^\s\s*/, "").replace(/\s\s*$/, "")
    }

    var o, l = [].filter, d = [].slice, h = /^\.([\w-]+)$/, c = /^#([\w-]*)$/, p = /^[\w-]+$/, u = a(2), g = a(3), f = function (e, t) {
        return new f.fn.init(e, t)
    }, v = function (e, t) {
        var a;
        try {
            return i(e) && c.test(t) ? (a = e.getElementById(RegExp.$1)) ? [a] : [] : 1 !== e.nodeType && 9 !== e.nodeType ? [] : d.call(h.test(t) ? e.getElementsByClassName ? e.getElementsByClassName(RegExp.$1) : _(e, RegExp.$1) : p.test(t) ? e.getElementsByTagName(t) : e.querySelectorAll(t))
        } catch (s) {
            return []
        }
    }, m = function (e, t, a) {
        t = t || [], e.selector = a || "", e.length = t.length;
        for (var i = 0, s = t.length; i < s; i++)e[i] = t[i];
        return e
    }, _ = function (e, t) {
        if (e.getElementsByTagName)for (var a = e.getElementsByTagName("*"), i = new RegExp("(^|\\s)" + t + "(\\s|$)"), s = 0, r = a.length; s < r; s++)if (i.test(a[s].className))return [a[s]];
        return []
    };
    f.fn = {
        init: function (e, t) {
            if (e) {
                if (e.nodeType)return m(this, [e]);
                var a;
                if (s(e)) a = r(e); else {
                    if (t !== o)return f(t).find(e);
                    a = v(document, e)
                }
                return m(this, a, e)
            }
            return m(this)
        }, find: function (e) {
            var t, a = this;
            return t = "object" == typeof e ? f(e).filter(function () {
                    var e = this;
                    return [].some.call(a, function (t) {
                        return f.contains(t, e)
                    })
                }) : 1 == this.length ? f(v(this[0], e)) : this.map(function () {
                        return v(this, e)
                    })
        }, each: function (e) {
            if ([].every) [].every.call(this, function (t, a) {
                return e.call(t, a, t) !== !1
            }); else for (var t = 0, a = this.length; t < a; t++)e.call(this[t], t, this[t]);
            return this
        }, hasClass: function (e) {
            var t = this[0];
            return new RegExp("(\\s|^)" + e + "(\\s|$)").test(t.className)
        }, addClass: function (e) {
            var t = (e || "").split(/\s+/);
            return this.each(function () {
                for (var e = this.className, a = 0, i = t.length; a < i; a++)f(this).hasClass(t[a]) || (e += " " + t[a]);
                this.className = n(e)
            })
        }, removeClass: function (e) {
            var t = (e || "").split(/\s+/);
            return this.each(function () {
                for (var e = this.className, a = 0, i = t.length; a < i; a++) {
                    var s = new RegExp("(\\s|^)" + t[a] + "(\\s|$)");
                    e = e.replace(s, " ")
                }
                this.className = g.trim(e)
            })
        }, on: function (e, t, a) {
            return this.each(function (i, s) {
                var r = function (e) {
                    e.target = e.target || e.srcElement, t.call(a, e)
                };
                s.domid || (s.domid = String(Math.random()).slice(-4));
                var n = e + "_" + s.domid;
                t[n] = r, s.addEventListener ? s.addEventListener(e, r, !1) : s.attachEvent && s.attachEvent("on" + e, r)
            })
        }, off: function (e, t, a) {
            return this.each(function (a, i) {
                var s = e + "_" + i.domid, r = t[s] || t;
                i.removeEventListener ? i.removeEventListener(e, r, !1) : i.detachEvent && i.detachEvent("on" + e, r)
            })
        }, getStyle: function (e) {
            var t = this[0];
            if (u.msie) {
                switch (e) {
                    case"opacity":
                        return (t.filters["DXImageTransform.Microsoft.Alpha"] || t.filters.alpha || {}).opacity || 100;
                    case"float":
                        e = "styleFloat"
                }
                return t.style[e] || t.currentStyle ? t.currentStyle[e] : 0
            }
            return "float" == e && (e = "cssFloat"), t.style[e] || (document.defaultView.getComputedStyle(t, "") ? document.defaultView.getComputedStyle(t, "")[e] : null) || 0
        }, setStyle: function (e, t) {
            return this.each(function () {
                var a = this;
                if (u.msie)switch (e) {
                    case"opacity":
                        return a.style.filter = "alpha(opacity=" + 100 * t + ")", void(a.currentStyle && a.currentStyle.hasLayout || (a.style.zoom = 1));
                    case"float":
                        e = "styleFloat"
                } else"float" == e && (e = "cssFloat");
                a.style[e] = t
            })
        }, getAttr: function (e) {
            var t = this[0];
            return t.getAttribute(e)
        }, setAttr: function (e, t) {
            return this.each(function () {
                var a = this;
                a.setAttribute(e, t)
            })
        }, offset: function () {
            var e = this[0], t = document.body, a = e.getBoundingClientRect();
            return {
                top: a.top + (window.scrollY || t.parentNode.scrollTop || e.scrollTop) - (document.documentElement.clientTop || t.clientTop || 0),
                left: a.left + (window.scrollX || t.parentNode.scrollLeft || e.scrollLeft) - (document.documentElement.clientLeft || t.clientLeft || 0)
            }
        }, width: function (e) {
            return "undefined" == typeof e ? this[0].offsetWidth : void(this[0].style.width = parseFloat(e) + "px")
        }, height: function (e) {
            return "undefined" == typeof e ? this[0].offsetHeight : void(this[0].style.height = parseFloat(e) + "px")
        }, map: function (e) {
            return f(f.map(this, function (t, a) {
                return e.call(t, a, t)
            }))
        }
    }, f.fn.init.prototype = f.fn, f.isDebug = !1, module.exports = f
}
